package com.joshjung.echosurf.event
{
    import flash.events.Event;
    import com.joshjung.echosurf.ESPacket;

    public class ESPacketEvent extends Event
    {
        public static const PACKET_RECEIVED : String = "packetReceived";

        public var packet : ESPacket;

        public function ESPacketEvent(packet : ESPacket, bubbles : Boolean = false, cancelable : Boolean = false)
        {
            super(PACKET_RECEIVED, bubbles, cancelable);

            this.packet = packet;
        }
    }
}
